package lab02.test35;

/**
 * Created by dell on 2017/11/19.
 */
public class Worker extends Employee {
    //按他每月工作的天数计算工资
    int day;
    double daysalary;
    public Worker(String name,int day,double daysalary) {
        super(name);
        this.day=day;
        this.daysalary=daysalary;
    }

    @Override
    public double computeSalary() {
        return day*daysalary;
    }
}
